package com.iteaj.iot.test.client.line;

import com.iteaj.iot.client.protocol.ClientInitiativeProtocol;
import com.iteaj.iot.test.ClientSnGen;
import com.iteaj.iot.test.TestProtocolType;
import com.iteaj.iot.test.message.line.LineMessageBody;
import com.iteaj.iot.test.message.line.LineMessageHead;

import java.util.UUID;

public class LineClientRequestProtocol extends ClientInitiativeProtocol<LineClientMessage> {

    @Override
    protected LineClientMessage doBuildRequestMessage() {
        String uuid = ClientSnGen.getMessageId();
        LineMessageHead messageHead = LineMessageHead.build(uuid, uuid, TestProtocolType.CIReq);
        return new LineClientMessage(messageHead, LineMessageBody.build());
    }

    @Override
    public void doBuildResponseMessage(LineClientMessage message) {

    }

    @Override
    public TestProtocolType protocolType() {
        return TestProtocolType.CIReq;
    }
}
